import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request

export default {
	// 获取会员列表 分页
	queryPageByCondition(params){
		let url = 'system/memberSettleInApply/queryPageByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 获取会员列表
	queryByCondition(params){
		let url = 'system/memberSettleInApply/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 添加
	add(params) {
		let url = 'system/memberSettleInApply/application'
		return api.request(url, 'post', params)
	},
	// 修改
	edit(params) {
		let url = 'system/memberSettleInApply/edit'
		return api.request(url, 'put', params)
	},
	// 修改
	del(params) {
		let url = `system/memberSettleInApply/del?id=${params}`
		return api.request(url, 'DELETE', params)
	},
	// 获取当前系统用户
	queryPartyUserByCondition(params) {
		let url = 'system/partyUser/queryByCondition'
		return api.request(url, 'post', params)
	},
	// 运营获取邀请码
	queryByInviteCode(params) {
		let url = `system/provider/queryByInviteCode?inviteCode=${params}`
		return api.request(url, 'get', params)
	},
	getLoginUser(params) {
		let url = 'system/user/getCurrentUserInfo?partyType=' + params.partyType + '&partyNo=' + params.partyNo
		return api.request(url, 'get', params)
	},

	// 查询用户信息
	queryByUserNo(params) {
		let url = 'system/user/queryByUserNo?userNo=' + params.userNo
		return api.request(url, 'get', params)
	},
	// 获取会员详情
	queryById(params) {
		let url = 'system/memberSettleInApply/queryById'
		return api.request(url, 'get', params)
	}
}